package main

import (
	"fmt"
	"time"
)

func main() {
	t := time.Now()
	//不带条件的swith，就相当于是if - else if- else
	switch {
	case t.Hour() < 12:
		fmt.Println("早上好")
	case t.Hour() < 18:
		fmt.Println("下午好")
	default:
		fmt.Println("晚上好")
	}

}
